<template>
	<scroll-view class="content-style" scroll-y lower-threshold="30" @scrolltolower="scrolltolower" style="height: calc(100vh - var(--window-bottom));">
		<view class="header-top"></view>
		<view class="content-absolute">
			 <u-tabs
					:list="tabs"
					lineWidth="40"
					lineColor="#fff"
					@click="click"
					:activeStyle="{
						color: '#fff',
						fontWeight: 'bold',
						transform: 'scale(1.1)'
					}"
					:inactiveStyle="{
						color: '#fff',
						transform: 'scale(1)'
					}">
			</u-tabs>
			<view class="content-box">
				<view class="zwsj-box">
					<image src="@/static/image/zwsj.png"></image>
					<text>抱歉, 没有找到你想要的内容</text>
				</view>
			</view>
		</view>
	</scroll-view>
</template>

<script>
	export default {
		data() {
			return {
				items: [{
					type: 1,
					title: '个人心愿',
					tabs: [{
						name: '全部'
					}, {
						name: '待认领'
					}, {
						name: '待点亮'
					}, {
						name: '执行中'
					}, {
						name: '已完成'
					}]
				}, {
					type: 2,
					title: '组织活动',
					tabs: [{
						name: '全部'
					}, {
						name: '未开始'
					}, {
						name: '进行中'
					}, {
						name: '已完成'
					}]
				}]
			}
		},
		onLoad() {
			this.loadData();
		},
		methods: {
			loadData() {
				
			},
			
			scrolltolower() {
				if (this.total > this.list.length) {
					this.page++
					this.loadData()
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.search-box {
		display: flex;
		align-items: center;
		margin: 40rpx 30rpx 0;
		width: 690rpx;
		height: 80rpx;
		background-color: #fff;
		border-radius: 12rpx;
		image {
			margin: 0 20rpx 0 25rpx;
			width: 30rpx;
			height: 33rpx;
		}
		.input {
			margin-right: 30rpx;
			flex: 1;
			font-size: 28rpx;
		}
	}
	
	.institution {
		margin: 40rpx 30rpx;
		color: #fff;
		font-size: 26rpx;
		text {
			border-radius: 10rpx;
			border: 1rpx solid white;
			padding: 5rpx 20rpx;
		}
	}
	
	.content-box {
		display: flex;
		flex-direction: column;
		height: 500rpx;
		width: 100vw;
		border-radius: 40rpx 40rpx 0 0;
		background-color: #F5F6F7;
	}
	
	.item-box {
		margin: 30rpx 30rpx 30rpx;
		width: 690rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		border: 1rpx solid #EBECF1;
		box-sizing: border-box;
		padding: 25rpx 20rpx;
		
		.wks {
			font-size: 28rpx;
			color: #787878;
		}
		
		.jxz {
			font-size: 28rpx;
			color: #1B77EF;
		}
		
		.ywc {
			font-size: 28rpx;
			color: #333333;
		}
		
		.wishwall-li1 {
			display: flex;
			flex-direction: column;
			margin-top: 15rpx;
			.thumb {
				width: 100%;
				height: 330rpx;
				border-radius: 16rpx;
			}
			.absolute-box {
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				position: absolute;
				width: 650rpx;
				height: 330rpx;
				.top-box {
					display: flex;
					flex-direction: column;
					width: 650rpx;
					background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
					border-radius: 16rpx 16rpx 0rpx 0rpx;
					padding: 25rpx;
					box-sizing: border-box;
					text {
						color: #FFFFFF;
						overflow: hidden;
						white-space: nowrap;
						text-overflow: ellipsis;
					}
					.title {
						font-size: 28rpx;
						font-weight: bold;
					}
					.description {
						margin-top: 20rpx;
						font-size: 24rpx;
					}
				}
				.bottom-box {
					display: flex;
					align-items: flex-end;
					justify-content: space-between;
					width: 650rpx;
					background: linear-gradient(360deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
					border-radius: 0rpx 0rpx 16rpx 16rpx;
					padding: 25rpx;
					box-sizing: border-box;
					.column-box {
						display: flex;
						flex-direction: column;
						font-size: 22rpx;
						color: #FFFFFF;
						image {
							width: 22rpx;
							height: 25rpx;
							margin-right: 5rpx;
						}
						.sum {
							color: #FE6911;
						}
					}
					.dl-box {
						display: flex;
						align-items: center;
						justify-content: center;
						width: 174rpx;
						height: 56rpx;
						line-height: 56rpx;
						background-image: linear-gradient(to right, #D9D9D8, #9A9B9A);
						border-radius: 56rpx;
						font-size: 22rpx;
						color: #fff;
						image {
							width: 40rpx;
							height: 33rpx;
							margin-right: 10rpx;
						}
						&.ydl {
							background-image: linear-gradient(to right, #F49C01, #ED810E);
						}
					}
				}
			}
		}
		
		.wishwall-li2 {
			display: flex;
			align-items: center;
			box-sizing: border-box;
			margin-top: 20rpx;
			border-radius: 16rpx;
			background: #F6F6F6;
			padding: 24rpx;
			.thumb {
				width: 148rpx;
				height: 148rpx;
				border-radius: 50%;
				margin-right: 20rpx;
			}
			.wishwall-right {
				flex: 1;
				.wishwall-right-1 {
					font-size: 28rpx;
					font-weight: bold;
					color: #101010;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
				}
				.wishwall-right-2 {
					margin-top: 15rpx;
					font-size: 24rpx;
					font-weight: 400;
					color: #999999;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
				}
				.wishwall-right-3 {
					display: flex;
					align-items: center;
					justify-content: space-between;
					font-size: 22rpx;
					margin-top: 25rpx;
					image {
						width: 22rpx;
						height: 25rpx;
						margin-right: 6rpx;
					}
					.wishwall-right-3-1 {
						color: #666666;
					}
					.wishwall-right-3-2 {
						color: #999999;
					}
				}
			}
		}
	}
	
	.zwsj-box {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 150rpx;
		image {
			width: 215rpx;
			height: 160rpx;
		}
		text {
			font-size: 28rpx;
			color: #333333;
		}
	}
</style>